package ee.mtiidla.data;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * Created by Marko on 12.10.2014.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Session {

	@XmlAttribute(name = "course")
	private String course;

	@XmlAttribute(name = "date")
	private String date;

	@XmlAttribute(name = "daytime")
	private String dayTime;

	@XmlAttribute(name = "name")
	private String name;

	@XmlAttribute(name = "number")
	private int number;

	@XmlAttribute(name = "warmupfrom")
	private String warmUpStart;

	@XmlAttribute(name = "warmupuntil")
	private String warmUpEnd;

	@XmlElementWrapper(name="EVENTS")
	@XmlElement(name="EVENT")
	private List<Event> events;

	@XmlElement(name="POOL")
	private Pool pool;

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getDayTime() {
		return dayTime;
	}

	public void setDayTime(String dayTime) {
		this.dayTime = dayTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getWarmUpStart() {
		return warmUpStart;
	}

	public void setWarmUpStart(String warmUpStart) {
		this.warmUpStart = warmUpStart;
	}

	public String getWarmUpEnd() {
		return warmUpEnd;
	}

	public void setWarmUpEnd(String warmUpEnd) {
		this.warmUpEnd = warmUpEnd;
	}

	public List<Event> getEvents() {
		return events;
	}

	public void setEvents(List<Event> events) {
		this.events = events;
	}

	public Pool getPool() {
		return pool;
	}

	public void setPool(Pool pool) {
		this.pool = pool;
	}

	public String toString() {

		return number + " - " + name;

	}
}
